<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
	session.setAttribute("k1", "v1");
	session.setAttribute("k2", "v2");
	// 销毁session 使session失效
	session.invalidate();
	out.print(session);
	// 报错 session失效后无法setAttribute
	/* session.setAttribute("k3", "v3"); */
	%>


	<%-- <%
	session.removeAttribute("username");
%>
	<%=session.getAttribute("username") %> --%>
</body>
</html>